import request from '@/utils/request'

// 查询指标明细列表
export function listIndexDetail(query) {
  return request({
    url: '/business/indexDetail/list',
    method: 'get',
    params: query
  })
}

// 查询指标明细详细
export function getIndexDetail(id) {
  return request({
    url: '/business/indexDetail/' + id,
    method: 'get'
  })
}

// 新增指标明细
export function addIndexDetail(data) {
  return request({
    url: '/business/indexDetail',
    method: 'post',
    data: data
  })
}

// 修改指标明细
export function updateIndexDetail(data) {
  return request({
    url: '/business/indexDetail',
    method: 'put',
    data: data
  })
}

// 删除指标明细
export function delIndexDetail(id) {
  return request({
    url: '/business/indexDetail/' + id,
    method: 'delete'
  })
}
